Data Mastery - Python by Lauren Glass

Data Mastery - Python by Lauren Glass

Author:Lauren Glass [Glass, Lauren]
Language: eng
Format: mobi
Published: 2019-05-03T16:00:00+00:00


The structure is very simple, we need the keyword if and a relational operator, in this case the equals operator ==, to compare two pieces of data. Then we end the conditional with a colon and indent the next line to assign commands to execute if this conditional is true.

Here are the other relational operators:

Additionally, Python has a few logical operators that are an important part of learning conditionals.

The first is the operator is is. We use this operator if we are checking if data is either a Boolean or None.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.